package fy.form.hr_plans.conf;

import fy.util.MyUtil;

public class Hr_PlansConf {
	public static final short STATE_START = 0;
	public static final short STATE_STOP = 1;
	public static final short STATE_FINISH = 2;
	public static final short STATE_CANCER = 3;
	public static final short STATE_STEPBACK = 4;
	public static final short STATE_TAKEBACK = 5;
	public static final short STATE_PROCESS = 6;

	private static final String[] TEMPLETECODES = { "PersonalDevelopment",
			"PersonalDevelopment1" };

	public static final String LOGPATH = MyUtil.getRealPath(Hr_PlansConf.class)
			+ "oa2hrError.log";

	public static boolean checkTempletCode(String code) {
		for (int i = 0, length = TEMPLETECODES.length; i < length; i++) {
			if (TEMPLETECODES[i].equals(code)) {
				return true;
			}
		}
		return false;
	}
//	public static void main(String[] args) {
//		System.out.println(LOGPATH);
//	}
}
